home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13039 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1019 b   |  39 lines

  1. Path: ssds.com!usenet
  2. From: Ron Romero <ron.romero@ssds.com>
  3. Newsgroups: comp.os.ms-windows.programmer.misc,comp.lang.c++
  4. Subject: Symantec 7.2 Hello World Problem
  5. Date: Fri, 22 Mar 1996 10:02:55 -0500
  6. Organization: SSDS, Inc.
  7. Distribution: inet
  8. Message-ID: <3152C11F.2975@ssds.com>
  9. NNTP-Posting-Host: rem_vie23.ssds.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14. CC: ron.romero@ssds.com
  15.  
  16. I'm having trouble doing a C++ Hello World program with Symantec C++ 7.2, using output to windows 
  17. 3.11 console.  It seems like this should be trivial, but it dowsn't work.  It works with printf, 
  18. but cout produces no output.  
  19.  
  20. Here's the code:
  21.  
  22. -----Cut Here------------
  23. #include <iostream.h>
  24. #include <stdio.h>
  25.  
  26. main()
  27. {
  28.     cout << "Hello World" << endl;
  29.  
  30.     printf("Goodbye World\n");
  31. }
  32. -----Cut Here------------
  33.  
  34. This produces "Goodbye World" on the first line of the console window.  
  35.  
  36. Any ideas?  Am I just not linking right?
  37.  
  38. Ron Romero
  39.